import request from '@/utils/request'


// 关键指标分析
export function getIndexStatistics() {
  return request({
    url: '/operation/api/process/keyIndicators',
    method: 'get'
  })
}

// 关键指标 - 加矾（氯）对比
export function getDmaProductionDifferenceRanking(params) {
  return request({
    url: '/operation/api/process/keyIndicators/flowComparison',
    method: 'get',
    params
  })
}

// 进出水水质统计
export function getFactoryWaterQualityStatistics() {
  return request({
    url: '/operation/api/process/inflowOutflowWaterQuality',
    method: 'get'
  })
}

// 总览统计
export function getWorkOrderStatistics() {
  return request({
    url: '/operation/api/process/overview',
    method: 'get'
  })
}

// 获取实时数据
export function getRealTimeData(params) {
  return request({
    url: '/operation/api/process/realTimeData',
    method: 'get',
    params
  })
}

// 设备管理统计
export function getDeviceStatusStatistics() {
  return request({
    url: '/operation/api/process/deviceManagement',
    method: 'get'
  })
}

// 实时告警
export function getRealTimeAlarm() {
  return request({
    url: '/operation/api/process/realTimeAlarm',
    method: 'get'
  })
}